import Vue from 'vue'
import VueRouter from 'vue-router'

//组件区域
import Faxian from '../views/Faxian.vue'
import Wode from '../views/Wode.vue'
import Guanzhu from '../views/Guanzhu.vue'
import Tuijian from '../views/Tuijian.vue'
import Paihang from '../views/Paihang.vue'
import Eason from '../views/Eason.vue'
import Lala from '../views/Lala.vue'
Vue.use(VueRouter)
const router = new VueRouter({
  mode: 'history',
  routes: [
    {
      path: '/faxian',
      component: Faxian,
      children:[
        {
         path: '/tuijian',
         component: Tuijian,
        },
        {
         path: '/paihang',
         component:Paihang,
        }
    ]
    },
    {
      path: '/wode',
      component: Wode,
    },
    {
      path: '/guanzhu',
      component: Guanzhu,
      children:[
        {
          path: '/eason',
          component: Eason,
        },
        {
          path: '/lala',
          component: Lala,
        }
      ]
    },
  ],
})

export default router
